package com.zbh.uexam.base;

/**
 * @author zhoubh
 */
public enum SystemCode {
    /**
     * OK
     */
    OK(1, "成功"),
    /**
     * AccessTokenError
     */
    AccessTokenError(400, "用户登录令牌失效"),
    /**
     * UNAUTHORIZED
     */
    UNAUTHORIZED(401, "用户未登录"),
    /**
     * UNAUTHORIZED
     */
    AuthError(402, "用户名或密码错误"),
    /**
     * RepeatUser
     */
    RepeatUser(403, "用户已经在别的地方登录, 如果不是本人登陆请修改密码"),

    /**
     * sessionValid
     */
    sessionValid(4001, "用户会话登陆过期, 请重新登录"),
    /**
     * InnerError
     */
    InnerError(500, "系统内部错误"),
    /**
     * ParameterValidError
     */
    ParameterValidError(501, "参数验证错误"),

    /**
     * AccessDenied
     */
    AccessDenied(502,"用户没有权限访问"),


    ExcelError(503, "Excel导入错误，请仔细核对模板"),

    EmailError(504, "发送邮件失败"),

    CodeError(505, "验证码错误"),

    CodeTimeOut(506, "验证码超时");



    int code;
    String message;

    SystemCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
